package com.qiaoan.myenum;

/**
 * Created by zhangchong on 2017/4/26.
 */
public enum UserState {

    /**
     * 禁用(0)
     */
    Disable {
        @Override
        public String getTitle() {
            return "Disable";
        }
    },

    /**
     * 启用(1)
     */
    Enable {
        @Override
        public String getTitle() {
            return "Enable";
        }
    };


    @Override
    public String toString() {
        return this.getTitle();
    }

    public abstract String getTitle();

    public int getValue() {
        return this.ordinal();
    }
}
